<!doctype html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Editor," />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />






<meta name="description" content="官网Install Package ControllCtrl + ` 然后输入">
<meta name="keywords" content="Editor">
<meta property="og:type" content="article">
<meta property="og:title" content="Sublime Text 杂记">
<meta property="og:url" content="https://gitee.com/icmyfuture/icmyfuture/2017/06/19/st-note/index.html">
<meta property="og:site_name" content="icmyfuture">
<meta property="og:description" content="官网Install Package ControllCtrl + ` 然后输入">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2022-09-21T13:33:46.658Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Sublime Text 杂记">
<meta name="twitter:description" content="官网Install Package ControllCtrl + ` 然后输入">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://gitee.com/icmyfuture/icmyfuture/2017/06/19/st-note/"/>





  <title>Sublime Text 杂记 | icmyfuture</title>
  














</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">icmyfuture</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">Nothing is true, everthing is permitted</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup">
 <span class="search-icon fa fa-search"></span>
 <input type="text" id="local-search-input" placeholder="search my blog...">
 <div id="local-search-result"></div>
 <span class="popup-btn-close">close</span>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="https://gitee.com/icmyfuture/icmyfuture/2017/06/19/st-note/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="iDu">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/uploads/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="icmyfuture">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Sublime Text 杂记</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-06-19T10:03:26+08:00">
                2017-06-19
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Technology/" itemprop="url" rel="index">
                    <span itemprop="name">Technology</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="官网"><a href="#官网" class="headerlink" title="官网"></a><a href="https://www.sublimetext.com/" target="_blank" rel="noopener">官网</a></h1><h1 id="Install-Package-Controll"><a href="#Install-Package-Controll" class="headerlink" title="Install Package Controll"></a><a href="https://packagecontrol.io/installation" target="_blank" rel="noopener">Install Package Controll</a></h1><p>Ctrl + ` 然后输入<a id="more"></a><br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">import urllib.request,os,hashlib; h = pf2297e1a458f27d836c04bb0cbaf282&apos; + &apos;d0e7a3098092775ccb37ca9d6b2e4b7d&apos;; pf = &apos;Package Control.sublime-package&apos;; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( &apos;http://packagecontrol.io/&apos; + pf.replace(&apos; &apos;, &apos;%20&apos;)).read(); dh = hashlib.sha256(by).hexdigest(); print(&apos;Error validating download (got %s instead of %s), please try manual install&apos; % (dh, h)) if dh != h else open(os.path.join( ipp, pf), &apos;wb&apos; ).write(by)</span><br></pre></td></tr></table></figure></p>
<h1 id="Package-List"><a href="#Package-List" class="headerlink" title="Package List"></a><a href="https://blog.csdn.net/qq_29819449/article/details/80130327" target="_blank" rel="noopener">Package List</a></h1><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;bootstrapped&quot;: true,</span><br><span class="line">    &quot;in_process_packages&quot;:</span><br><span class="line">    [</span><br><span class="line">    ],</span><br><span class="line">    &quot;installed_packages&quot;:</span><br><span class="line">    [</span><br><span class="line">        &quot;A File Icon&quot;,</span><br><span class="line">        &quot;Alignment&quot;,</span><br><span class="line">        &quot;All Autocomplete&quot;,</span><br><span class="line">        &quot;Anaconda&quot;,</span><br><span class="line">        &quot;AutoFileName&quot;,</span><br><span class="line">        &quot;Boxy Theme&quot;,</span><br><span class="line">        &quot;C Improved&quot;,</span><br><span class="line">        &quot;CodeFormatter&quot;,</span><br><span class="line">        &quot;ConvertToUTF8&quot;,</span><br><span class="line">        &quot;DocBlockr&quot;,</span><br><span class="line">        &quot;Emmet&quot;,</span><br><span class="line">        &quot;Git&quot;,</span><br><span class="line">        &quot;HTML-CSS-JS Prettify&quot;,</span><br><span class="line">        &quot;JavaScript Completions&quot;,</span><br><span class="line">        &quot;JavaScript Refactor&quot;,</span><br><span class="line">        &quot;JavaScriptNext - ES6 Syntax&quot;,</span><br><span class="line">        &quot;Markdown Extended&quot;,</span><br><span class="line">        &quot;Markdown Preview&quot;,</span><br><span class="line">        &quot;Monokai Extended&quot;,</span><br><span class="line">        &quot;Monokai Pro&quot;,</span><br><span class="line">        &quot;Package Control&quot;,</span><br><span class="line">        &quot;PackageResourceViewer&quot;,</span><br><span class="line">        &quot;SideBarEnhancements&quot;,</span><br><span class="line">        &quot;SublimeAStyleFormatter&quot;,</span><br><span class="line">        &quot;SublimeCodeIntel&quot;,</span><br><span class="line">        &quot;SublimeGDB&quot;,</span><br><span class="line">        &quot;SublimeLinter&quot;,</span><br><span class="line">        &quot;SublimeLinter-eslint&quot;,</span><br><span class="line">        &quot;SublimeLinter-gcc&quot;,</span><br><span class="line">        &quot;SublimeLinter-pylint&quot;,</span><br><span class="line">        &quot;Sync Settings&quot;,</span><br><span class="line">        &quot;Terminal&quot;,</span><br><span class="line">        &quot;Vuejs Complete Package&quot;</span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h1 id="Settings"><a href="#Settings" class="headerlink" title="Settings"></a><a href="https://scotch.io/bar-talk/best-sublime-text-3-themes-of-2015-and-2016" target="_blank" rel="noopener">Settings</a></h1><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;caret_extra_top&quot; : 1,</span><br><span class="line">    &quot;caret_extra_bottom&quot; : 1 ,</span><br><span class="line">    &quot;caret_extra_width&quot; : 1,</span><br><span class="line">    &quot;highlight_line&quot;: true,</span><br><span class="line">    &quot;color_scheme&quot;: &quot;Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme&quot;,</span><br><span class="line">    &quot;folder_exclude_patterns&quot;:</span><br><span class="line">    [</span><br><span class="line">        &quot;node_modules&quot;,</span><br><span class="line">        &quot;.git&quot;</span><br><span class="line">    ],</span><br><span class="line">    &quot;font_face&quot;: &quot;Source Code Pro&quot;,</span><br><span class="line">    &quot;font_size&quot;: 11,</span><br><span class="line">    &quot;ignored_packages&quot;:</span><br><span class="line">    [</span><br><span class="line">        &quot;Vintage&quot;</span><br><span class="line">    ],</span><br><span class="line">    &quot;tab_size&quot;: 4,</span><br><span class="line">    &quot;theme&quot;: &quot;Boxy Monokai.sublime-theme&quot;,</span><br><span class="line">    &quot;theme_sidebar_close_always_visible&quot;: true,</span><br><span class="line">    &quot;theme_sidebar_folder_mono&quot;: true,</span><br><span class="line">    &quot;theme_sidebar_font_md&quot;: true,</span><br><span class="line">    &quot;theme_sidebar_indent_md&quot;: true,</span><br><span class="line">    &quot;theme_sidebar_size_xs&quot;: true,</span><br><span class="line">    &quot;translate_tabs_to_spaces&quot;: true,</span><br><span class="line">    &quot;trim_automatic_white_space&quot;: true,</span><br><span class="line">    &quot;trim_trailing_white_space_on_save&quot;: true,</span><br><span class="line">    &quot;word_wrap&quot;: true,</span><br><span class="line"></span><br><span class="line">    &quot;always_show_minimap_viewport&quot;: true,</span><br><span class="line">    &quot;bold_folder_labels&quot;: true,</span><br><span class="line">    &quot;caret_extra_bottom&quot;: 1,</span><br><span class="line">    &quot;caret_extra_top&quot;: 1,</span><br><span class="line">    &quot;caret_extra_width&quot;: 1,</span><br><span class="line">    &quot;caret_style&quot;: &quot;blink&quot;,</span><br><span class="line">    &quot;fade_fold_buttons&quot;: false,</span><br><span class="line">    &quot;indent_guide_options&quot;: [&quot;draw_normal&quot;, &quot;draw_active&quot;],</span><br><span class="line">    &quot;line_padding_bottom&quot;: 2,</span><br><span class="line">    &quot;line_padding_top&quot;: 2,</span><br><span class="line">    &quot;overlay_scroll_bars&quot;: &quot;enabled&quot;,</span><br><span class="line">    &quot;show_encoding&quot;: true,</span><br><span class="line">    &quot;show_line_endings&quot;: true,</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h1 id="Key-bindings"><a href="#Key-bindings" class="headerlink" title="Key bindings"></a>Key bindings</h1><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line">[&#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;alt+shift+l&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;reveal_in_side_bar&quot;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;ctrl+up&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;scroll_lines&quot;,</span><br><span class="line">    &quot;args&quot;: &#123;</span><br><span class="line">        &quot;amount&quot;: 1.0</span><br><span class="line">    &#125;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;ctrl+down&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;scroll_lines&quot;,</span><br><span class="line">    &quot;args&quot;: &#123;</span><br><span class="line">        &quot;amount&quot;: -1.0</span><br><span class="line">    &#125;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;ctrl+shift+r&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;goto_symbol_in_project&quot;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;f12&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;goto_definition&quot;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;ctrl+shift+b&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;exec&quot;,</span><br><span class="line">    &quot;args&quot;: &#123;</span><br><span class="line">        &quot;kill&quot;: true</span><br><span class="line">    &#125;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;ctrl+shift+p&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;show_overlay&quot;,</span><br><span class="line">    &quot;args&quot;: &#123;</span><br><span class="line">        &quot;overlay&quot;: &quot;command_palette&quot;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;, &#123;</span><br><span class="line">    &quot;keys&quot;: [&quot;ctrl+alt+a&quot;],</span><br><span class="line">    &quot;command&quot;: &quot;alignment&quot;</span><br><span class="line">&#125;]</span><br></pre></td></tr></table></figure>
<h1 id="Syncing"><a href="#Syncing" class="headerlink" title="Syncing"></a><a href="https://packagecontrol.io/docs/syncing" target="_blank" rel="noopener">Syncing</a></h1><p><a href="https://github.com/mfuentesg/SyncSettings" target="_blank" rel="noopener">SyncSettings</a><br>sublimetext-setting-sync: 4aa2924362f38fedc957925a8b9fc4ab34e06546<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;access_token&quot;: &quot;4aa2924362f38fedc957925a8b9fc4ab34e06546&quot;,</span><br><span class="line">    &quot;auto_upgrade&quot;: false,</span><br><span class="line">    &quot;excluded_files&quot;:</span><br><span class="line">    [</span><br><span class="line">        &quot;.dmg&quot;,</span><br><span class="line">        &quot;.DS_Store&quot;,</span><br><span class="line">        &quot;.DS_Store?&quot;,</span><br><span class="line">        &quot;.exe&quot;,</span><br><span class="line">        &quot;.Spotlight-V100&quot;,</span><br><span class="line">        &quot;.Trashes&quot;,</span><br><span class="line">        &quot;ehthumbs.db&quot;,</span><br><span class="line">        &quot;oscrypto-ca-bundle.crt&quot;,</span><br><span class="line">        &quot;SyncSettings.sublime-settings&quot;,</span><br><span class="line">        &quot;Package Control.cache&quot;,</span><br><span class="line">        &quot;Package Control.last-run&quot;,</span><br><span class="line">        &quot;Package Control.merged-ca-bundle&quot;,</span><br><span class="line">        &quot;Package Control.system-ca-bundle&quot;,</span><br><span class="line">        &quot;Package Control.user-ca-bundle&quot;,</span><br><span class="line">        &quot;Thumbs.db&quot;</span><br><span class="line">    ],</span><br><span class="line">    &quot;gist_id&quot;: &quot;1da91ad492c51f0665622587c05cb0fa&quot;,</span><br><span class="line">    &quot;included_files&quot;:</span><br><span class="line">    [</span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<h1 id="Compile-amp-Debug-C-C"><a href="#Compile-amp-Debug-C-C" class="headerlink" title="Compile &amp; Debug C/C++"></a><a href="http://www.yalewoo.com/sublimegdb.html" target="_blank" rel="noopener">Compile &amp; Debug C/C++</a></h1><h2 id="安装cygwin64"><a href="#安装cygwin64" class="headerlink" title="安装cygwin64"></a>安装cygwin64</h2><p>新建Build System<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;shell_cmd&quot;: &quot;gcc -g *.c -std=c11 -g -Wall -o $&#123;file_base_name&#125;.sh&quot;</span><br><span class="line">    // &quot;shell_cmd&quot;: &quot;gcc -g *.c -std=c11 -g -Wall -o $&#123;file_base_name&#125;.sh &amp;&amp; start cmd /c \&quot;$&#123;file_path&#125;/$&#123;file_base_name&#125;.sh &amp; pause\&quot;&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<h2 id="安装SublimeGDB"><a href="#安装SublimeGDB" class="headerlink" title="安装SublimeGDB"></a>安装SublimeGDB</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    &quot;workingdir&quot;: &quot;$&#123;folder:$&#123;file&#125;&#125;&quot;,</span><br><span class="line">    &quot;commandline&quot;: &quot;gdb --interpreter=mi ./$&#123;file_base_name&#125;.sh&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h1 id="License-4126"><a href="#License-4126" class="headerlink" title="License 4126"></a><a href="https://my.oschina.net/caijj/blog/5504770" target="_blank" rel="noopener">License 4126</a></h1><p>#00#<em>00</em><br><figure class="highlight md"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">—– BEGIN LICENSE —–</span><br><span class="line">Mifeng User</span><br><span class="line">Single User License</span><br><span class="line">EA7E-1184812</span><br><span class="line">C0DAA9CD 6BE825B5 FF935692 1750523A</span><br><span class="line">EDF59D3F A3BD6C96 F8D33866 3F1CCCEA</span><br><span class="line">1C25BE4D 25B1C4CC 5110C20E 5246CC42</span><br><span class="line">D232C83B C99CCC42 0E32890C B6CBF018</span><br><span class="line">B1D4C178 2F9DDB16 ABAA74E5 95304BEF</span><br><span class="line">9D0CCFA9 8AF8F8E2 1E0A955E 4771A576</span><br><span class="line">50737C65 325B6C32 817DCB83 A7394DFA</span><br><span class="line">27B7E747 736A1198 B3865734 0B434AA5</span><br><span class="line">—— END LICENSE ——</span><br></pre></td></tr></table></figure></p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Editor/" rel="tag"># Editor</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/06/16/win-note/" rel="next" title="Win10笔记">
                <i class="fa fa-chevron-left"></i> Win10笔记
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/06/20/vsc-note/" rel="prev" title="Visual Studio Code 杂记">
                Visual Studio Code 杂记 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/uploads/avatar.jpg"
               alt="iDu" />
          <p class="site-author-name" itemprop="name">iDu</p>
           
              <p class="site-description motion-element" itemprop="description">诗酒风流品花月</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives">
                <span class="site-state-item-count">23</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">3</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">7</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/icmyfuture" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://weibo.com/u/1865769731" target="_blank" title="Weibo">
                  
                    <i class="fa fa-fw fa-weibo"></i>
                  
                  Weibo
                </a>
              </span>
            
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#官网"><span class="nav-number">1.</span> <span class="nav-text">官网</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Install-Package-Controll"><span class="nav-number">2.</span> <span class="nav-text">Install Package Controll</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Package-List"><span class="nav-number">3.</span> <span class="nav-text">Package List</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Settings"><span class="nav-number">4.</span> <span class="nav-text">Settings</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Key-bindings"><span class="nav-number">5.</span> <span class="nav-text">Key bindings</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Syncing"><span class="nav-number">6.</span> <span class="nav-text">Syncing</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Compile-amp-Debug-C-C"><span class="nav-number">7.</span> <span class="nav-text">Compile &amp; Debug C/C++</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#安装cygwin64"><span class="nav-number">7.1.</span> <span class="nav-text">安装cygwin64</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#安装SublimeGDB"><span class="nav-number">7.2.</span> <span class="nav-text">安装SublimeGDB</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#License-4126"><span class="nav-number">8.</span> <span class="nav-text">License 4126</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2025</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">iDu</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>


        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.1"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>



  


  




	





  





  





  






  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'manual') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  

  

  

  

  

  

</body>
</html>
